{extend name="common/base"/}

{block name="banner_wellcome"}{/block}

{block name="content"}

<div class="clear"></div>
<div class="detailbox">
  <div class="xq">
    <div class="tit">{$info.title}</div>
    <div class="date">
        发表时间：{:date('Y-m-d H:i', $info['add_time'])}
        
        &nbsp;&nbsp;&nbsp;
        栏目：
        <a href="{:url('lakecms/cate/index', ['catename' => $cate['name']])}" target="_blank">
            <span class="news-cate">
                {$cate.title}
            </span>
        </a>
        
        &nbsp;&nbsp;&nbsp;
        标签: 
        <span class="news-tags">
            {:implode(',', $info['tags'])}
        </span>
        
        &nbsp;&nbsp;&nbsp;
        类型: 
        <span class="news-types">
            {if $info['type']}
                {:implode(',', $info['type'])}
            {/if}
        </span>
    </div>
    
    <div class="con">{$info.content|raw}</div>
    
    <div class="con-prev-next">
        {php}
        $catename = $cate['name'];
        $contentid = $info['id'];
        {/php}
        {contentprev catename="$catename" field="id,title" contentid="$contentid" return="data"}
            <div class="con-prev">
                上一篇：
                <a href="{:url('lakecms/content/index', ['catename' => $cate['name'], 'id' => $data['id']])}" title="{$data['title']}">{$data['title']}</a>
            </div>
        {/contentprev}
        
        {contentnext catename="$catename" field="id,title" contentid="$contentid" return="data"}
            <div class="con-next">
                下一篇：
                <a href="{:url('lakecms/content/index', ['catename' => $cate['name'], 'id' => $data['id']])}" title="{$data['title']}">{$data['title']}</a>
            </div>
        {/contentnext}
    </div>
  </div>
</div>

{/block}
